package com.cutePet.pet.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.cutePet.pet.dao.PetUserDao;
import com.cutePet.pet.domain.PetUserDO;
import com.cutePet.pet.service.PetUserService;



@Service
public class PetUserServiceImpl implements PetUserService {
	@Autowired
	private PetUserDao petUserDao;
	
	@Override
	public PetUserDO get(Long userId){
		return petUserDao.get(userId);
	}
	
	@Override
	public List<PetUserDO> list(Map<String, Object> map){
		return petUserDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return petUserDao.count(map);
	}
	
	@Override
	public int save(PetUserDO petUser){
		return petUserDao.save(petUser);
	}
	
	@Override
	public int update(PetUserDO petUser){
		return petUserDao.update(petUser);
	}
	
	@Override
	public int remove(Long userId){
		return petUserDao.remove(userId);
	}
	
	@Override
	public int batchRemove(Long[] userIds){
		return petUserDao.batchRemove(userIds);
	}
	
}
